package com.movie.ticket.sale;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        long l = System.currentTimeMillis();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Date date= new Date(l);
        System.out.println("1:"+date);
        String format = sdf.format(date);
        System.out.println("2:"+format);
    }
}
